//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-04A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Carrie Underwood','The Theatre at Resorts World Las Vegas','Las Vegas, NV','Wednesday','5/22/2024','8:00 PM','5937386','Carrie-Underwood-5-22-2024'],['Carrie Underwood','The Theatre at Resorts World Las Vegas','Las Vegas, NV','Saturday','5/25/2024','8:00 PM','5937387','Carrie-Underwood-5-25-2024'],['Carrie Underwood','The Theatre at Resorts World Las Vegas','Las Vegas, NV','Sunday','5/26/2024','8:00 PM','5937388','Carrie-Underwood-5-26-2024'],['Carrie Underwood','The Theatre at Resorts World Las Vegas','Las Vegas, NV','Wednesday','5/29/2024','8:00 PM','5937389','Carrie-Underwood-5-29-2024'],['Carrie Underwood','The Theatre at Resorts World Las Vegas','Las Vegas, NV','Friday','5/31/2024','8:00 PM','5937390','Carrie-Underwood-5-31-2024'],['Carrie Underwood','The Theatre at Resorts World Las Vegas','Las Vegas, NV','Saturday','6/1/2024','8:00 PM','5937391','Carrie-Underwood-6-1-2024'],['Grand Ole Opry: Carrie Underwood','Grand Ole Opry House','Nashville, TN','Tuesday','6/4/2024','7:00 PM','6282099','Grand-Ole-Opry--Carrie-Underwood-6-4-2024'],['Grand Ole Opry: Carrie Underwood','Grand Ole Opry House','Nashville, TN','Tuesday','6/4/2024','9:30 PM','6307325','Grand-Ole-Opry--Carrie-Underwood-6-4-2024'],['Carolina Country Music Festival: Morgan Wallen, Carrie Underwood, Parker McCollum & Old Dominion - 4 Day Pass','Myrtle Beach','Myrtle Beach, SC','Thursday','6/6/2024','TBD','5868575','Carolina-Country-Music-Festival--Morgan-Wallen--Carrie-Underwood--Parker-McCollum---Old-Dominion---4-Day-Pass-6-6-2024'],['Carrie Underwood','Constellation Brands Performing Arts Center','Canandaigua, NY','Friday','6/21/2024','7:30 PM','6381351','Carrie-Underwood-6-21-2024']],'"Carrie Underwood"','https://www.ticketnetwork.com');